From: Krzesimir Nowak Date: Fri, 18 Nov 2016 14:52:46 +0000 (+0100) Subject: notificationDaemon: Consider hyphens for app ID to object path translations X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~35 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ce7ff27c0ce100338b472b42068fd9808fdcf27c;p=gnome-shell.git notificationDaemon: Consider hyphens for app ID to object path translations Some application IDs contain hyphens, which are not allowed in D-Bus object paths, so we need to update the translation by converting them to something that's a valid object path. This is consistent with what GApplication does. https://bugzilla.gnome.org/show_bug.cgi?id=787902 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 27ed28149..ed8870fe1 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -670,7 +670,7 @@ const FdoApplicationIface = ' \ const FdoApplicationProxy = Gio.DBusProxy.makeProxyWrapper(FdoApplicationIface); function objectPathFromAppId(appId) { - return '/' + appId.replace(/\./g, '/'); + return '/' + appId.replace(/\./g, '/').replace(/-/g, '_'); } function getPlatformData() {